package com.ncu.sports.mapper;

import com.ncu.sports.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface UserMapper {

    public int getUserByUsernameAndPassword(String username, String password);

    public List<User> getUserByUsername(String name);

    /*public List<User> getUser();*/

    public int updateStateById(User user);

    public int insertUser(User user);

    public int deleteUser(int id);

    public User getUpdateUser(int id);

    public int updateUser(User user);

    public User getUpdateRole(int id);

    public int updateRole(User user);
}
